package com.mars.module.admin.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mars.module.system.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 患者病例信息对象 sys_user_case_information
 *
 * @author mars
 * @date 2024-04-11
 */

@Data
@ApiModel(value = "患者病例信息对象")
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("sys_user_case_information")
public class SysUserCaseInformation  {

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "id")
    private Long id;
    /**
     * 用户
     */
    @Excel(name = "用户")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "用户")
    private Long userId;

    @TableField(exist = false)
    @ApiModelProperty(value = "患者姓名")
    private String userName;
    /**
     * 发病时间
     */
    @Excel(name = "发病时间")
    @ApiModelProperty(value = "发病时间")
    private LocalDate morbidityDate;
    /**
     * 以往病史
     */
    @Excel(name = "以往病史")
    @ApiModelProperty(value = "以往病史")
    private String medicalHistory;
    /**
     * 现病史
     */
    @Excel(name = "现病史")
    @ApiModelProperty(value = "现病史")
    private String currentMedicalHistory;
    /**
     * 症状
     */
    @Excel(name = "症状")
    @ApiModelProperty(value = "症状")
    private String disease;
    /**
     * 体征
     */
    @Excel(name = "体征")
    @ApiModelProperty(value = "体征")
    private String sign;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "创建人ID")
    private Long createById;
}
